﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SlideshowNumber.ascx.cs"
    Inherits="VIT.Web.Modules.SlideshowNumber.SlideshowNumber" %>
<%--
    <div id="test">
        <div class="wt-rotator">
            <div class="screen">
                
            </div>
            <div class="c-panel">
                <div class="buttons">
                    <div class="prev-btn">
                    </div>
                    <div class="play-btn">
                    </div>
                    <div class="next-btn">
                    </div>
                </div>
                <div class="thumbnails">
                    <asp:Repeater ID="rpt" runat="server">
                    <HeaderTemplate>
                        <ul>
                    </HeaderTemplate>
                        <ItemTemplate>
                            
                                <li><a href="<%# URLRoot%>uploads/images/logos/<%#Eval("FileName") %>" title="<%#Eval("Title") %>">
                                    <img src="<%# URLRoot%>uploads/images/logos/<%#Eval("FileName") %>" alt="<%#Eval("Title") %>" /></a> <a href="#"
                                            target="_blank"></a></li>
                            
                        </ItemTemplate>
                        <FooterTemplate>
                        </ul>
                        </FooterTemplate>
                    </asp:Repeater>
                </div>
            </div>
        </div>
    </div>

<script type="text/javascript">
    slideShowNumber(<%= Width %>, <%= Height %>);
</script>
--%>

<div runat="server" id="divFeatures">
    <asp:Repeater ID="rpt" runat="server">
        <ItemTemplate>
            <div>
                <a href="<%#Eval("Link") %>">
                    <img src="<%# URLRoot%>uploads/images/logos/<%#Eval("FileName") %>" alt="<%#Eval("Title") %>" title="<%# Container.ItemIndex + 1 %>" />
                </a>
            </div>
        </ItemTemplate>
    </asp:Repeater>
</div>
<script type="text/javascript" src="<%=URLRoot %>Includes/jshowoff/jquery.jshowoff.min.js"></script>
<script type="text/javascript">
    (function ($) {
        $.fn.fixOverflow = function () {
            if ($.browser.msie) {
                return this.each(function () {
                    if (this.scrollWidth > this.offsetWidth) {
                        $(this).css({ 'padding-bottom': '20px', 'overflow-y': 'hidden' });
                    }
                });
            } else {
                return this;
            }
        };
    })(jQuery);
    $('pre').fixOverflow();
    $('#<%= divFeatures.ClientID %>').jshowoff();
    $('.jshowoff.jshowoff-1')[0].style.position = 'absolute';
    //$(document).ready(function () {  });
</script>